HiliteControl is a toolbox call used in conjunction with CyberDEFs to activate and deactivate—in a variety of ways—its dependent controls.

ListCDEFs

HiliteControl theControl,0     - activates scroll bar
HiliteControl theControl,255 - deactivates scroll bar

PictCDEFs

HiliteControl theControl,0     - sets to ID in init. fld.
HiliteControl theControl,10   - sets to ID in min. fld.
HiliteControl theControl,255 - sets to ID in max. fld.

TextCDEFs

HiliteControl theControl,0     - activates scroll/text
HiliteControl theControl,255 - deactivates scroll/text

On switching to another app (or to another window within the same app) you'll receive App4 and Activate events. This is an ideal time to ask HiliteControl to enable and disable your TextCDEF and ListCDEF controls. In the case of PictCDEFs, you may want to use HiliteControl to "simulate" the pressing of pict-style buttons, but you don't really need to activate/deactivate them on switching out windows or applications.

See ˇ "Events" for more info.